﻿<%@ Page Title="" Language="C#" MasterPageFile="~/index.Master" AutoEventWireup="true" CodeBehind="Dangnhap.aspx.cs" Inherits="QuanLyBanGiay.Trangweb.Dangnhap" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="matkhau">
                           <%-- <form id="formdangnhap" method="post" runat="server" onsubmit="return checkInput();">--%>
                           	  <table width="530" border="0">
                              <tr>
                                    <td width="238" height="30">* Tên đăng nhập:</td>
                                    <td width="282"><%--<input type="text" size="20" name='TenDN'/>--%>
                                        <asp:TextBox ID="txtID" runat="server" ></asp:TextBox></td>
                                  </tr>
                                  <tr>
                                    <td width="238" height="30">* Mật khẩu:</td>
                                    <td width="282">
                                       <%-- <input type="password" size="20" name='MK'/>--%>
                                         <asp:TextBox ID="txtPassword" runat="server" ></asp:TextBox></td>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td colspan="2" width="238" height="30"><div id="FormDn" align="center">
                                  <%--   //    <input runat="server" id="Submit1" type="submit" value="Đăng nhập" />--%>

                                        <asp:Button ID="submit" runat="server" Text="Đăng Nhập" OnClick="submit_Click" />
                                                                            </div></td>
                                    
                                  </tr>
                                 
                                </table>
                               <%-- </form>--%>
                                <script language="javascript">
                                    function checkInput() {
                                        if ((document.getElementsByName('TenDN')[0].value).trim() == "") {
                                            alert(' Vui lòng nhập tên đăng nhập !');
                                            document.getElementsByName('TenDN')[0].focus();
                                            return false;
                                        }
                                        if ((document.getElementsByName('MK')[0].value).trim() == "") {
                                            alert(' Vui lòng nhập mật khẩu !');
                                            document.getElementsByName('MK')[0].focus();
                                            return false;
                                        }

                                        return true;
                                    }
                                      </script>
                      

                            
                    	</div>
</asp:Content>
